//
//  WSMusicDetailsView.m
//  RunningMan
//
//  Created by 王帅 on 16/5/23.
//  Copyright © 2016年 WSJ. All rights reserved.
//

#import "WSMusicDetailsView.h"
#import "WSMyTool.h"
@implementation WSMusicDetailsView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubView];
    }
    return self;
}
- (void)createSubView {
    UILabel *labelPlayListText = [[UILabel alloc] initWithFrame:CGRectMake(10, 250 * FITHEIGHT, 100 * FITWIDTH, 15 * FITHEIGHT)];
    labelPlayListText.text = @"歌     单: ";
    labelPlayListText.font = [UIFont systemFontOfSize:20 * FITWIDTH];
    [self addSubview:labelPlayListText];
    
    self.labelPlayList = [[UILabel alloc] initWithFrame:CGRectMake(100, 250 * FITHEIGHT, 200 * FITWIDTH, 15 * FITHEIGHT)];
    self.labelPlayList.font = [UIFont systemFontOfSize:22 * FITWIDTH];
    [self addSubview:self.labelPlayList];
    
     self.imageViewPhoto = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, 230 * FITHEIGHT)];
    [self addSubview:self.imageViewPhoto];

    
    UILabel *labelName = [[UILabel alloc] initWithFrame:CGRectMake(10, 300 * FITHEIGHT, 100 * FITWIDTH, 15 * FITHEIGHT)];
    labelName.text = @"制作人: ";
    labelName.font = [UIFont systemFontOfSize:22 * FITWIDTH];
    [self addSubview:labelName];
    
    self.imageViewUserName = [[UIImageView alloc] initWithFrame:CGRectMake(90 * FITWIDTH, 288 * FITHEIGHT, 40 * FITWIDTH, 40 * FITHEIGHT)];
    self.imageViewUserName.layer.cornerRadius = 20 * FITWIDTH;
    self.imageViewUserName.layer.masksToBounds = YES;
    [self addSubview:self.imageViewUserName];
    
    self.labelUserName = [[UILabel alloc] initWithFrame:CGRectMake(150 * FITWIDTH, 300 * FITHEIGHT, 150 * FITWIDTH, 18 * FITHEIGHT)];
    self.labelUserName.font = [UIFont systemFontOfSize:22 * FITHEIGHT];
    [self addSubview:self.labelUserName];
    
    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 280 * FITHEIGHT, WIDTH, 1)];
    lineView.backgroundColor = [UIColor blackColor];
    lineView.alpha = 0.1;
    [self addSubview:lineView];
    
    UIView *lineViewTwo = [[UIView alloc] initWithFrame:CGRectMake(0, 335 * FITHEIGHT, WIDTH, 10 * FITHEIGHT)];
    lineViewTwo.backgroundColor = [UIColor grayColor];
    lineViewTwo.alpha = 0.1;
    [self addSubview:lineViewTwo];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
